package com.ktjy.market.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.ktjy.market.mapper.AppInfoMapper;
import com.ktjy.market.pojo.AppInfo;
import com.ktjy.market.service.AppInfoService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 秦羽墨
* @description 针对表【app_info】的数据库操作Service实现
* @createDate 2024-05-13 17:14:35
*/
@Service
public class AppInfoServiceImpl extends ServiceImpl<AppInfoMapper, AppInfo>
    implements AppInfoService {

    @Override
    public List<AppInfo> getAppInfoList(String softwareName, Integer valueId1, Integer valueId2, Integer id, Integer pid1, Integer pid2) {

        QueryWrapper<AppInfo> appInfoQueryWrapper=new QueryWrapper<>();
        appInfoQueryWrapper.eq("software_name",softwareName)
                .eq("valueId",valueId1)
                .eq("valueId",valueId2)
                .eq("id",id)
                .eq("parentId",pid1)
                .eq("parentId",pid2);

        return baseMapper.selectList(appInfoQueryWrapper);
    }
}




